package com.own.business.exam.common.swagger;

import com.own.constant.ConstantEnvironmentType;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Profile;
import springfox.documentation.oas.annotations.EnableOpenApi;
import springfox.documentation.spring.web.plugins.Docket;

/**
 * ExamSwaggerConfig
 *
 * @author 陈学礼 （你是一段成熟的代码，要学会自己改bug）
 * @version 4.0.0
 * @date 2021-6-17 16:55:21
 * @since 4.0.0
 */
@Profile({ConstantEnvironmentType.DEV, ConstantEnvironmentType.TEST})
@EnableOpenApi
@SpringBootConfiguration
public class ExamSwaggerConfig {

    @Bean
    public Docket businessExamApi() {
        return new ExamSwaggerFunction().api();
    }

}
